//
//  SearchHistorView.h
//  MedicalCare
//
//  Created by lbh on 2021/10/11.
//  Copyright © 2021 hs. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SKTagView.h"
#import "CacheManager.h"

NS_ASSUME_NONNULL_BEGIN
typedef void(^SearchHistorViewTagBlock)(NSString *key);
typedef void(^SearchHistorViewHotTagBlock)(NSString *key);
@interface SearchHistorView : UIView
@property (nonatomic,copy)NSString *searchType;//搜索类型首页和教育
//搜索历史
@property (nonatomic,strong)UIView *bgView;
@property (nonatomic,strong)UIView *topBgView;
@property (nonatomic,strong)UILabel *hostLabel;
@property (nonatomic,strong)UIButton *deleteBtn;
@property (nonatomic,strong)SKTagView *sktagBgView;
@property (nonatomic,copy)SearchHistorViewTagBlock historyViewTagBlock;
//热门搜索
@property (nonatomic,strong)UIView *hottopBgView;
@property (nonatomic,strong)UILabel *hothostLabel;
@property (nonatomic,strong)SKTagView *hotsktagBgView;
@property (nonatomic,strong)NSArray *hotArray;
@property (nonatomic,copy)SearchHistorViewHotTagBlock hotViewTagBlock;
- (void)addHistory:(NSString *)histor;
- (void)showSearchHistory;
- (void)disMissSearchHistory;
@end

NS_ASSUME_NONNULL_END
